package cn.stylefeng.guns.modular.gridsystem.model.param;

import cn.stylefeng.guns.core.pojo.base.param.BaseParam;

import java.util.Date;

import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;

/**
 * 第三方对接
 *
 * @author ssy
 * @date 2021/11/04 17:42
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class ThirdPartyInterconnectionParam extends BaseParam {

    /**
     * id
     */
    @NotNull(message = "id不能为空", groups = {edit.class})
    private Integer id;

    /**
     * 第三方接口地址
     */
    @NotNull(message = "第三方接口地址不能为空", groups = {add.class, edit.class})
    private String thirdPartyUrl;

    /**
     * 第三方标识
     */
    private String appKey;

    /**
     * 业务系统名称
     */
    @NotNull(message = "业务系统名称不能为空", groups = {add.class, edit.class})
    private String businessSystemName;

    /**
     * 所属组织
     */
    @NotNull(message = "所属组织不能为空", groups = {add.class, edit.class})
    private Long orgId;

    /**
     * create_time
     */
    private Date createTime;

    /**
     * create_user
     */
    private Long createUser;

    /**
     * update_time
     */
    private Date updateTime;

    /**
     * update_user
     */
    private Long updateUser;


    private String typeCode;
}
